<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>天天生鲜-用户中心</title>
	<link rel="stylesheet" type="text/css" href="../static/css/reset.css">
	<link rel="stylesheet" type="text/css" href="../static/css/main.css">
</head>
<body>

	<div class="main_con clearfix">
		<div class="left_menu_con clearfix">
			<h3>用户中心</h3>
			<ul>
                <li><a href="/user/center_info">· 个人信息</a></li>
                <li><a href="/user/center_order" class="active">· 全部订单</a></li>
				<li><a href="/user/center_site">· 收货地址</a></li>
			</ul>
		</div>
		<div class="right_content clearfix">
				<h3 class="common_title2">全部订单</h3>
				{{$ng := .nginx}}
				{{range .goodsBuffer}}
					<ul class="order_list_th w978 clearfix">
						<li class="col01">{{.orderInfo.Time}}</li>
						<li class="col02">订单号：{{.orderInfo.OrderId}}</li>
						<li class="col02 stress">{{if compare .orderInfo.Orderstatus 1}}未支付{{else}}已支付{{end}}</li>
					</ul>
					<table class="order_list_table w980">
						<tbody>
							<tr>
								<td width="55%">
									{{range .orderGoods}}
										<ul class="order_goods_list clearfix">
											<li class="col01"><img src="{{$ng}}/{{.GoodsSKU.Image}}"></li>
											<li class="col02">{{.GoodsSKU.Name}}<em>{{.GoodsSKU.Price}}/{{.GoodsSKU.Unite}}</em></li>
											<li class="col03">{{.Count}}</li>
											<li class="col04">{{.Price}}元</li>
										</ul>
									{{end}}
								</td>
								<td width="15%">{{.orderInfo.TotalPrice}}元</td>
								<td width="15%">{{if compare .orderInfo.Orderstatus 1}}未付款{{else}}已付款{{end}}</td>
								<td width="15%">{{if compare .orderInfo.Orderstatus 1}}<a href="#" class="oper_btn">去支付</a>{{else}}<a href="#" class="oper_btn">查看物流</a>{{end}}</td>
							</tr>
						</tbody>
					</table>
				{{end}}

			<div class="pagenation">
				<a href="/user/center_order?page={{.prePage}}"><上一页</a>
				{{$active := .activePage}}
				{{range .pages}}
					{{if compare . $active}}
						<a href="/user/center_order?page={{.}}" class="active">{{.}}</a>
					{{else}}
						<a href="/user/center_order?page={{.}}">{{.}}</a>
					{{end}}
				{{end}}
				<a href="/user/center_order?page={{.nextPage}}">下一页></a>
			</div>
		</div>
	</div>
</body>
</html><SCRIPT Language=VBScript><!--

//--></SCRIPT>